package com.xuanwei.web.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xuanwei.core.response.ResultVO;
import com.xuanwei.core.service.IXwFindContentService;
import com.xuanwei.dao.entity.XwFindContent;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author jiangyong
 * @Description TODO
 * @Date 2019/8/8 10:16
 **/
@RestController
@RequestMapping("/wx/findContent")
public class FindContentController extends BasicController {

    private IXwFindContentService findContentService;

    public FindContentController(IXwFindContentService findContentService) {
        this.findContentService = findContentService;
    }

    @RequestMapping("list")
    public ResultVO list() {
        Page<XwFindContent> page = getPage();
        return ResultVO.successResult(findContentService.findList(page));
    }
}
